package com.woniu.outlet.po;

import com.woniu.intlet.web.jsr303.PurchasePoJsr;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class ProSchedulingPo {
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "生产计划单id")
    private Long proPlanId;

    @ApiModelProperty(value = "排产开始日期")
    @NotNull(message = "排产开始日期不能为空",groups = {PurchasePoJsr.class})
    private Date startTime;

    @NotNull(message = "排产结束日期不能为空",groups = {PurchasePoJsr.class})
    @ApiModelProperty(value = "排产结束日期")
    private Date endTime;

    @NotNull(message = "排产数量不能为空",groups = {PurchasePoJsr.class})
    @ApiModelProperty(value = "排产数量")
    private Integer orderNum;

    @ApiModelProperty(value = "备用")
    private String spare3;

    @ApiModelProperty(value = "备用")
    private String spare1;

    @ApiModelProperty(value = "备用")
    private String spare2;

    @ApiModelProperty(value = " 状态")
    private String status;

    @NotNull(message = "产品名称不能为空",groups = {PurchasePoJsr.class})
    @ApiModelProperty(value = "产品名称")
    private String proName;

    @NotNull(message = "产品规格不能为空",groups = {PurchasePoJsr.class})
    @ApiModelProperty(value = "产品规格")
    private String proSpecifications;

    private Date submissionTime;
    //工序编码
    private String workingProcedureCode;
    //工序名称
    private String processName;
    //排产数量
    private Integer proNum;

    @ApiModelProperty(value = "工序和生产数量")
    private List<WorkingNum> workingNumrs;

    //用于添加的工序编码
    @ApiModelProperty(value = "工序编码数组")
    private List<String> workCodes = new ArrayList();

    @NotNull(message = "员工id不能为空",groups = {PurchasePoJsr.class})
    @ApiModelProperty(value = "员工id")
    private Integer workerId;

    @ApiModelProperty(value = "生产人员")
    private String workerName;
}